<?php

abstract class WebBase {

	private $lang; 

	public static function xmlEncode($str)
	{
		return htmlspecialchars($str, ENT_QUOTES);
	}

	public function __construct()
	{
	}

	public function setLang(array $lang)
	{
		$this->lang = $lang;
	}
	public function getLang($key)
	{
		return $this->lang[$key];
	}

	public function getTitle()
	{
		return $this->getLang('title');
	}

	public function getSubTitle()
	{
		return '';
	}

	public abstract function buildHead();

	public abstract function buildTop();

	public abstract function buildBody();

	public abstract function buildBottom();
}
